#ifndef __MARCHINGCUBES_H__
#define __MARCHINGCUBES_H__

/*

http://paulbourke.net/geometry/polygonise/

*/

typedef struct {
	double x;
	double y;
	double z;
} XYZ;

typedef struct {
   XYZ p[3];
   XYZ n;
} TRIANGLE;

typedef struct {
   XYZ p[8];
   float val[8];
} GRIDCELL;

void marchingCubes_drawAllFaces();
void marchingCubes_parseVoxelData();
bool marchingCubes_exportMesh(char * fileName);

#endif